<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
<?php
require_once '../../inc.php';
echo PHP_VERSION;
?>
<?php
//error handler function
echo EFD;
function customError($errno, $errstr, $errfile, $errline )
 { 
 echo "<b>Custom error:</b> [$errno] $errstr<br />";
 echo " Error on line $errline in $errfile<br />";
 echo "Ending Script  ";
 die();
 }

//set error handler
set_error_handler("customError",E_ALL | E_STRICT);

$test=2;

//trigger error
if ($test>1)
 {
 trigger_error(_mkcstr("A custom error has been triggered")->Fast());
 }
?>
</body>
</html>